<template>
	<el-dialog title="回款登记" v-model="checkDialog" width="700" center :before-close="handleClose">
		<receivedContent ref="content" :type="type" :id="id" :customerMes="customerMes" @close="getList"></receivedContent>
	</el-dialog>	
</template>

<script>
	import receivedContent from './index.vue';
	export default{
		components:{
			receivedContent
		},
		props: {
			type:{
				type: Number,
				default: 0
			},
			id: {
				type: String,
				default: ''
			},
			customerMes:{
				type: Object,
				default: res=>{return{}}
			}
		},
		data(){
			return{
				checkDialog:false
			}
		},
		
		methods:{
			open() {
				this.checkDialog = true
			},
			handleClose(){
				this.checkDialog = false
			},
			getList(){
				this.checkDialog = false
				this.$emit('getList')
			}
		}
	}
</script>

<style>
</style>